import com.study.ssm.dao.TestDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
        public static void main(String[] args){
            ClassPathXmlApplicationContext appContext=new ClassPathXmlApplicationContext("applicationContext.xml");
            TestDao testDao=(TestDao) appContext.getBean("testDao");
            testDao.test();
        }}
